# encoding=utf8
from cerberus import Validator
v = Validator({"name": {"type": "string", "required": True},
 "age":{"type": "integer", 'min': 18, 'max': 65}})
 # "regex": "^0[0-9]{9}$" 正则

print(v.validate({"age": 19, "name": ""}))
